<?php

namespace App\Models\Issue;

class IssueRepository
{
    public function store(Issue $issue)
    {
        $issue->saveOrFail();
        return $issue;
    }

    public function getOneById($id)
    {
        return Issue::where('id', $id)->first();
    }
}
